<?xml version="1.0"?>
<JWM>

	<!--
	A decent JWM config for a usable desktop with proper icons and standard shortcuts.
	
	Check the readme.md file to see instructions on how to install, use, requirements
	info, common keyboard shortcuts etc.

	Config:
	- Some apps are configured with the apps I had installed (please change as necessary, e.g. file manager, text editor, terminal etc.)
	-->

	<!-- The root menu. -->
	<RootMenu onroot="1" height="22">
		<!--<Include>/etc/jwm/debian-menu</Include>-->
		<Program icon="terminal.svg" label="Terminal">qterminal</Program>
		<Program icon="system-file-manager.svg" label="File Manager">pcmanfm-qt</Program>
		<Program icon="icecat.svg" label="Iceweasel">iceweasel</Program>
		<Program icon="icecat.svg" label="Iceweasel (private window)">iceweasel --private-window</Program>
		<Program icon="leafpad.svg" label="Leafpad">leafpad</Program>
		<Separator/>
		<Menu icon="chromium-app-list.svg" label="Programs">
			<Include>exec: xdgmenumaker -n -i -f jwm</Include>
		</Menu>
		<Separator/>
		<Program icon="lock.png" label="Lock">
			xlock -mode blank
		</Program>
		<Separator/>
		<Restart label="Restart JWM" icon="restart.png"/>
		<Program icon="" label="Power...">~/.local/share/jwm-config/power.sh</Program>
	</RootMenu>

	<RootMenu onroot="3" height="25">
		<Program icon="network-defaultroute.svg" label="Network Connections...">nm-connection-editor</Program>
		<Separator/>
		<Program icon="nitrogen.svg" label="Change Wallpaper...">nitrogen ~/Pictures</Program>
	</RootMenu>

	<!-- Options for program groups. -->
	<!-- Config note: You can change and adopt as necessary -->
	<Group>
		<Class>Pidgin</Class>
		<Option>sticky</Option>
	</Group>
	<Group>
		<Name>xclock</Name>
		<Option>drag</Option>
		<Option>notitle</Option>
	</Group>

	<!-- Tray at the bottom. -->
	<Tray x="0" y="-1" height="30" autohide="off">

		<TrayButton icon="chrome-app-list.svg">root:1</TrayButton>
		<Spacer width="5"/>
		<!-- Config note: You can add your apps for quick launch area. -->
		<TrayButton label="" icon="terminal.svg">exec:qterminal</TrayButton>
		<TrayButton label="" icon="dde-file-manager.svg">exec:pcmanfm-qt</TrayButton>
		<TrayButton label="" icon="leafpad.svg">exec:leafpad</TrayButton>
		<TrayButton label="" icon="cuttlefish.svg">exec:textadept</TrayButton>
		<Spacer width="10"/>

		<!-- Config note: You can uncomment this to get a pager (multiple desktops) -->
		<!-- <Pager labeled="true"/> -->

		<TaskList maxwidth="256"/>

		<Spacer width="10"/>
		<Dock/>
		<Clock format="%H:%M"><Button mask="123">exec:gsimplecal</Button></Clock>
		<TrayButton label="" popup="Show Desktop" icon="folder-black-desktop.svg">showdesktop</TrayButton>

	</Tray>

	<!-- Visual Styles -->
	<WindowStyle>
		<Font>Sans-11:bold</Font>
		<Width>5</Width>
		<Height>26</Height>
		<Corner>4</Corner>
		<Foreground>#DDDDDD</Foreground>
		<Background>#555555</Background>
		<Outline>#000000</Outline>
		<Opacity>0.5</Opacity>
		<Active>
			<Foreground>#FFFFFF</Foreground>
			<Background>#0077CC</Background>
			<Outline>#000000</Outline>
			<Opacity>1.0</Opacity>
		</Active>
	</WindowStyle>
	<TrayStyle group="false" list="all">
		<Font>Sans-9</Font>
		<Background>#333333</Background>
		<Foreground>#FFFFFF</Foreground>
		<Outline>#000000</Outline>
		<Opacity>0.75</Opacity>
	</TrayStyle>
	<PagerStyle>
		<Outline>#222222</Outline>
		<Foreground>#555555</Foreground>
		<Background>#333333</Background>
		<Text>#FFFFFF</Text>
		<Active>
			<Foreground>#0077CC</Foreground>
			<Background>#004488</Background>
		</Active>
	</PagerStyle>
	<MenuStyle>
		<Font>Sans-9</Font>
		<Foreground>#FFFFFF</Foreground>
		<Background>#333333</Background>
		<Outline>#222222</Outline>
		<Active>
			<Foreground>#FFFFFF</Foreground>
			<Background>#0077CC</Background>
		</Active>
		<Opacity>0.85</Opacity>
	</MenuStyle>
	<PopupStyle>
		<Font>Sans-10</Font>
		<Foreground>#AAAAAA</Foreground>
		<Background>#222222</Background>
		<Outline>#222222</Outline>
	</PopupStyle>

	<!-- Path where icons can be found.
		 IconPath can be listed multiple times to allow searching
		 for icons in multiple paths.
	  -->
	<IconPath>/usr/share/icons/Papirus/32x32/emblems</IconPath>
	<IconPath>/usr/share/icons/Papirus/32x32/apps</IconPath>
	<IconPath>/usr/share/icons/Papirus/32x32/places</IconPath>
	
	<IconPath>/usr/share/icons/gnome/256x256/actions</IconPath>
	<IconPath>/usr/share/icons/gnome/256x256/apps</IconPath>
	<IconPath>/usr/share/icons/gnome/256x256/categories</IconPath>
	<IconPath>/usr/share/icons/gnome/256x256/devices</IconPath>
	<IconPath>/usr/share/icons/gnome/256x256/emblems</IconPath>
	<IconPath>/usr/share/icons/gnome/256x256/mimetypes</IconPath>
	<IconPath>/usr/share/icons/gnome/256x256/places</IconPath>
	<IconPath>/usr/share/icons/gnome/256x256/status</IconPath>
	<IconPath>/usr/share/icons/gnome/32x32/actions</IconPath>
	<IconPath>/usr/share/icons/gnome/32x32/animations</IconPath>
	<IconPath>/usr/share/icons/gnome/32x32/apps</IconPath>
	<IconPath>/usr/share/icons/gnome/32x32/categories</IconPath>
	<IconPath>/usr/share/icons/gnome/32x32/devices</IconPath>
	<IconPath>/usr/share/icons/gnome/32x32/emblems</IconPath>
	<IconPath>/usr/share/icons/gnome/32x32/mimetypes</IconPath>
	<IconPath>/usr/share/icons/gnome/32x32/places</IconPath>
	<IconPath>/usr/share/icons/gnome/32x32/status</IconPath>
	<IconPath>/usr/share/icons/gnome/scalable/actions</IconPath>
	<IconPath>/usr/share/icons/gnome/scalable/apps</IconPath>
	<IconPath>/usr/share/icons/gnome/scalable/categories</IconPath>
	<IconPath>/usr/share/icons/gnome/scalable/devices</IconPath>
	<IconPath>/usr/share/icons/gnome/scalable/emblems</IconPath>
	<IconPath>/usr/share/icons/gnome/scalable/mimetypes</IconPath>
	<IconPath>/usr/share/icons/gnome/scalable/places</IconPath>
	<IconPath>/usr/share/icons/gnome/scalable/status</IconPath>
	<IconPath>/usr/share/icons/hicolor/256x256/apps</IconPath>
	<IconPath>/usr/share/icons/hicolor/256x256/mimetypes</IconPath>
	<IconPath>/usr/share/icons/hicolor/32x32/actions</IconPath>
	<IconPath>/usr/share/icons/hicolor/32x32/apps</IconPath>
	<IconPath>/usr/share/icons/hicolor/32x32/categories</IconPath>
	<IconPath>/usr/share/icons/hicolor/32x32/devices</IconPath>
	<IconPath>/usr/share/icons/hicolor/32x32/emblems</IconPath>
	<IconPath>/usr/share/icons/hicolor/32x32/mimetypes</IconPath>
	<IconPath>/usr/share/icons/hicolor/32x32/status</IconPath>
	<IconPath>/usr/share/icons/hicolor/512x512/apps</IconPath>
	<IconPath>/usr/share/icons/hicolor/512x512/mimetypes</IconPath>
	<IconPath>/usr/share/icons/hicolor/scalable/actions</IconPath>
	<IconPath>/usr/share/icons/hicolor/scalable/apps</IconPath>
	<IconPath>/usr/share/icons/hicolor/scalable/categories</IconPath>
	<IconPath>/usr/share/icons/hicolor/scalable/devices</IconPath>
	<IconPath>/usr/share/icons/hicolor/scalable/emblems</IconPath>
	<IconPath>/usr/share/icons/hicolor/scalable/mimetypes</IconPath>
	<IconPath>/usr/share/icons/hicolor/scalable/places</IconPath>
	<IconPath>/usr/share/icons/hicolor/scalable/status</IconPath>
	<IconPath>/usr/share/icons</IconPath>
	<IconPath>/usr/share/pixmaps</IconPath>
	<IconPath>
		/usr/local/share/jwm
	</IconPath>

	<!-- Virtual Desktops -->
	<!-- Desktop tags can be contained within Desktops for desktop names. -->
	<Desktops width="4" height="1">
		<!-- Default background. Note that a Background tag can be
			  contained within a Desktop tag to give a specific background
			  for that desktop.
		 -->
		<Background type="solid">#111111</Background>
	</Desktops>

	<!-- Double click speed (in milliseconds) -->
	<DoubleClickSpeed>400</DoubleClickSpeed>

	<!-- Double click delta (in pixels) -->
	<DoubleClickDelta>2</DoubleClickDelta>

	<!-- The focus model (sloppy or click) -->
	<FocusModel>click</FocusModel>

	<!-- The snap mode (none, screen, or border) -->
	<SnapMode distance="10">border</SnapMode>

	<!-- The move mode (outline or opaque) -->
	<MoveMode>opaque</MoveMode>

	<!-- The resize mode (outline or opaque) -->
	<ResizeMode>opaque</ResizeMode>

	<!-- Key bindings -->
	<Key key="Up">up</Key>
	<Key key="Down">down</Key>
	<Key key="Right">right</Key>
	<Key key="Left">left</Key>
	<Key key="h">left</Key>
	<Key key="j">down</Key>
	<Key key="k">up</Key>
	<Key key="l">right</Key>
	<Key key="Return">select</Key>
	<Key key="Escape">escape</Key>

	<Key mask="A" key="Tab">nextstacked</Key>
	<Key mask="A" key="F4">close</Key>
	<Key mask="A" key="#">desktop#</Key>
	<Key mask="A" key="F1">root:1</Key>
	<Key mask="A" key="F2">exec:~/.local/share/jwm-config/runmenu.sh</Key>
	<Key mask="4" key="R">exec:~/.local/share/jwm-config/runmenu.sh</Key>
	<Key mask="A" key="F3">root:1</Key>
	<Key mask="A" key="space">window</Key>
	<Key mask="A" key="F10">maximize</Key>
	<Key mask="CA" key="Right">rdesktop</Key>
	<Key mask="4" key="Tab">rdesktop</Key>
	<Key mask="CA" key="Left">ldesktop</Key>
	<Key mask="CA" key="Up">udesktop</Key>
	<Key mask="CA" key="Down">ddesktop</Key>
	<Key mask="CA" key="D">showdesktop</Key>
	<Key mask="4" key="D">showdesktop</Key>

	<Key mask="CA" key="T">exec:qterminal</Key>
	<Key mask="CA" key="E">exec:pcmanfm-qt</Key>
	<Key mask="4" key="E">exec:pcmanfm-qt</Key>
	<Key mask="" key="F12">exec:~/.local/share/jwm-config/runmenu.sh</Key>

	<!-- Connect to external monitor / choose screens -->
	<Key mask="4" key="P">exec:~/.local/share/jwm-config/screens.sh</Key>
	<Key mask="" key="XF86Display">exec:~/.local/share/jwm-config/screens.sh</Key>

	<Key mask="4" key="F4">exec:~/.local/share/jwm-config/power.sh</Key>
	<Key mask="CAS" key="R">exec:jwm -restart</Key>
	<Key mask="CA" key="L">exec:xlock -mode blank</Key>
	<Key mask="4" key="L">exec:xlock -mode blank</Key>

	<!-- startup -->
	<StartupCommand>
		<!-- rofi -key-run F12 & -->
		nitrogen --restore &
		~/.local/share/jwm-config/batteryicon.sh &amp;
		volumeicon &amp;
		nm-applet &amp;
		<!--
		Config note: You can change "Alt_L|F1" to anything else.
		For example, 'Super_L=Alt_L|F1' opens the main menu,
		'Super_L=Alt_L|F2' would open the run option.
		-->
		ksuperkey -e 'Super_L=Alt_L|F1' &amp;
		<!-- Start notification manager -->
		<!-- Any can be chosen from: https://wiki.archlinux.org/index.php/Desktop_notifications#Standalone -->
		lxqt-notificationd &amp;
	</StartupCommand>

</JWM>
